/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cheetah.youbet.helper;

import java.sql.Connection;
import java.sql.PreparedStatement;
import org.cheetah.youbet.sql.Database;

/**
 *
 * @author edoardo
 */
abstract class Helper {
    
    private transient static  PreparedStatement preparedStatement;
    public static final PreparedStatement getPreparedStatement(Connection con,String sql){
        return Database.getPreparedStatement(con , sql);
    }
    public static final PreparedStatement getPreparedStatementBatched(Connection con,String sql){
        return preparedStatement==null? Database.getPreparedStatement(con , sql):preparedStatement;
    }
}
